package com.ruoyi.system.domain;

import org.apache.commons.lang3.StringUtils;

import java.math.BigDecimal;
import java.util.Comparator;

/**
 * @program: ruoyi
 * @description:
 * @author: Mr.sun
 * @create: 2020-12-05 13:49
 **/
public class WeChatUser{

    private String  wexinName;

    private BigDecimal  oldPrice;

    private BigDecimal price;

    public BigDecimal getOldPrice() {
        return oldPrice;
    }

    public void setOldPrice(BigDecimal oldPrice) {
        this.oldPrice = oldPrice;
    }

    public String getWexinName() {
        if(StringUtils.isNotBlank(wexinName) && wexinName.indexOf("&")>-1){
            wexinName = wexinName.replaceAll("&","_");
        }
        return wexinName;
    }

    public void setWexinName(String wexinName) {
        this.wexinName = wexinName;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

}
